package com.example.xitdemo1.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FormDemoController {
    @GetMapping("/form-demo-get")
    public String formDemoGet(String username, String password){
        return "username: " + username + ", password: " + password;
    }

    @PostMapping("/form-demo-psot")
    public String formDemoPost(String username, String password){
        return "username: " + username + ", password: " + password;
    }
}
